/**
 *@author:xiongjian
 * 2017-3-28
 */
class HuTypePanel extends BasePanel {
    public constructor(){
        super();
        this.skinName = "huTypeSkin";
    }

    private cardList :eui.List;

    protected onEnable() {
        this.setData();
        this.setCenter();
    }

    protected onRemove() {

    }

    private setData(){
        let ac = new eui.ArrayCollection();
        let arr =[];
        arr.push({"cardList":[0x11, 0x12, 0x13, 0x34, 0x35, 0x36, 0x17, 0x18, 0x19, 0x21, 0x21, 0x21, 0x22,0x22],"hulabel":"屁胡"});
        arr.push({"cardList":[0x23, 0x23, 0x23, 0x24, 0x24, 0x24, 0x26, 0x26, 0x26, 0x26, 0x29, 0x29, 0x37],"hulabel":"混合起手胡"});
        arr.push({"cardList":[0x11, 0x11, 0x21, 0x21, 0x31, 0x31, 0x17, 0x18, 0x19, 0x21, 0x23, 0x25, 0x34],"hulabel":"起手胡三同"});
        arr.push({"cardList":[0x11, 0x11, 0x12, 0x12, 0x13, 0x13, 0x37, 0x38, 0x39, 0x21, 0x23, 0x25, 0x26],"hulabel":"起手胡步步高"});
        arr.push({"cardList":[0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x39, 0x21, 0x21, 0x21, 0x22],"hulabel":"起手胡一枝花"});
        arr.push({"cardList":[0x11, 0x12, 0x13, 0x24, 0x25, 0x26, 0x17, 0x18, 0x39, 0x21, 0x21, 0x21, 0x21],"hulabel":"大四喜"});
        arr.push({"cardList":[0x11, 0x11, 0x13, 0x14, 0x16, 0x16, 0x17, 0x17, 0x39, 0x21, 0x21, 0x21, 0x24],"hulabel":"板板胡"});
        arr.push({"cardList":[0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x21, 0x21, 0x21, 0x22],"hulabel":"缺一色"});
        arr.push({"cardList":[0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x39, 0x39, 0x39, 0x21, 0x21, 0x21, 0x22],"hulabel":"六六顺"});
        
        // arr.push({"cardList":[0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x15, 0x16, 0x17, 0x19],"hulabel":"清一色"});
        // arr.push({"cardList":[0x11, 0x11, 0x13, 0x13, 0x15, 0x15, 0x17, 0x17, 0x19, 0x19, 0x21, 0x21, 0x22],"hulabel":"七小对"});
        // arr.push({"cardList":[0x11, 0x11, 0x13, 0x13, 0x15, 0x15, 0x17, 0x17, 0x19, 0x19, 0x22, 0x22, 0x22],"hulabel":"豪华七小对"});
        // arr.push({"cardList":[0x12, 0x12, 0x12, 0x15, 0x15, 0x32, 0x32, 0x18, 0x28, 0x28, 0x35, 0x35, 0x22],"hulabel":"将将胡"});
        // arr.push({"cardList":[0x32, 0x32, 0x32, 0x14, 0x14, 0x14, 0x17, 0x17, 0x17, 0x21, 0x21, 0x21, 0x22],"hulabel":"碰碰胡"});
 
        // arr.push({"cardList":[0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x21, 0x21, 0x21, 0x22, 0x22],"hulabel":"清一色"});
        ac.source = arr;
        this.cardList.dataProvider = ac;
        this.cardList.itemRenderer = HuTypeItem;
    }

}